package com.hifar.sso.exception;

/**
 * SSO异常类
 * 
 * @author system
 * @since 1.0.0
 */
public class SSOException extends RuntimeException {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 错误代码
     */
    private String errorCode;
    
    /**
     * 错误描述
     */
    private String errorDescription;
    
    public SSOException(String message) {
        super(message);
    }
    
    public SSOException(String message, Throwable cause) {
        super(message, cause);
    }
    
    public SSOException(String errorCode, String errorDescription) {
        super(errorDescription);
        this.errorCode = errorCode;
        this.errorDescription = errorDescription;
    }
    
    public SSOException(String errorCode, String errorDescription, Throwable cause) {
        super(errorDescription, cause);
        this.errorCode = errorCode;
        this.errorDescription = errorDescription;
    }
    
    public String getErrorCode() {
        return errorCode;
    }
    
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
    
    public String getErrorDescription() {
        return errorDescription;
    }
    
    public void setErrorDescription(String errorDescription) {
        this.errorDescription = errorDescription;
    }
}
